const util = require("/util/util");
const loginApi = {
    channel(params){
        return new Promise((resolve, reject)=>{
          console.log(my.request())
         
            my.request({
              url: 'https://httpbin.org/post',
              method: 'POST',
              data: params,
              dataType: 'json',
              success: function(res) {
                my.alert({content: 'success'});
              },
              fail: function(res) {
                util.toastfn(res.data.msg)
              }
            });
        })
    },
}
const url='https://bbzjapi.iguophone.com'
//const url="http://47.96.21.18:9020"
export {
    loginApi,
    url,  
   
 }